package com.dunqi.gpm.cangxi.develop.activity;

import android.content.Context;
import android.text.style.ClickableSpan;
import android.view.View;

import com.dunqi.gpm.cangxi.common.WebActivity;

/**
 * Created by 空 on 2017/12/21 0021.
 */
public class URLSpanToWeb extends ClickableSpan {

    private String url;

    public URLSpanToWeb(String url) {
        this.url = url;
    }

    @Override
    public void onClick(View arg0) {
        Context context = arg0.getContext();
        WebActivity.start(context, url);
    }

}
